import { createRouter, createWebHistory } from 'vue-router'

import routes from './routes'

const router = createRouter({
  history: createWebHistory(),
  routes,
  scrollBehavior() {
    return { top: 0, left: 0 }
  }
})

// router.beforeEach((to, from, next) => {
//   next()
// })

// router.afterEach((to) => {})

export default router
